﻿using System.Collections.ObjectModel;

namespace gixoom.Dom.Score
{
    public interface IScore
    {
        /// <summary>
        /// Gets read only collection of bytes of score.
        /// First converts hash string to bytes if bytes are not initialized.
        /// </summary>
        /// <value>read only collection of bytes of score.</value>
        ReadOnlyCollection<byte> GetBytes();

        /// <summary>
        /// Converts score to string if hash string was not already initialized.
        /// </summary>
        /// <returns>string representation of score</returns>
        string ToString();
    }
}
